package com.sspaas.message.utils;

import java.util.ArrayList;
import java.util.List;

import com.sspaas.message.pojo.Message;

public class demo {
	public static void main(String[] args) {
		List<Message> list = new ArrayList<>();
		List<String> slist = new ArrayList<>();
		String s = "";
		for (Message msg : list) {
			s+=msg.getPhone()+",";
		}
		String substring = s.substring(0, s.length()-1);
		System.out.println(substring);
		
	}
}
